<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" href="layui/css/layui.css">
</head>
<body>
  
  <script src="layui/layui.js"></script>
  <script>
    layui.use(['jquery','layer'],function(){
      var layer = layui.layer;
      var $ = layui.jquery;
      layer.msg("你好啊");
      $(function(){
        alert(1)
      })
    });
  </script>
</body>
</html>